﻿using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EAMF.Content.NPCs.Monster
{
    //封装一个记录NPC位置的类
    public class NPCList
    {
        public static void Push<T>(T ele, ref T[] list) //ref是引用
        {
            for (int num = list.Length - 1; num > 0; num--)
            {
                list[num] = list[num - 1];
            }
            list[0] = ele;
        }
    }
}
